import { get, post, put, del, baseUrl} from "./request"


export const Apilogin = (parmas) => post("/api/user/login",parmas)

export const ApihotArticle = (parmas) => get("/api/home/hotArticle",parmas)

export const ApigetUsePatient = (parmas) => get("/api/userPatient/getUsePatient",parmas)
export const ApigetUsePatientList = (parmas) => get("/api/userPatient/getUsePatientList",parmas)
export const ApicheckPatient = (id) => get("/api/userPatient/checkPatient/" + id)

export const ApiaddPatient = (parmas) => post("/api/userPatient/addPatient",parmas)
export const ApigetCode = (parmas) => get("/api/userPatient/getCaptchaCode",parmas)
export const ApiputPatient = (parmas,id) => post("/api/userPatient/updatePatient/" + id,parmas)
export const ApidelPatient = (id) => del("/api/userPatient/deletePatient/" + id)

export const ApidiagnosisList = (parmas) => get("/api/userPatient/diagnosisList",parmas)
export const ApidoctorList = (parmas) => get("/api/userPatient/myDoctor",parmas)

export const ApiarticleList = (parmas) => get("/api/science/articleList",parmas)
export const ApiscienceInfo = (id) => get("/api/science/articleDetail/" + id)
export const ApiexpertList = (parmas) => get("/api/science/expertList",parmas)
export const ApidepartmentList = (parmas) => get("/api/science/departmentList",parmas)
export const ApiquestionList = (parmas) => get("/api/science/questionList",parmas)



export const ApigetDutyDoctor = (parmas) => get("/api/quickVisit/getDutyDoctor",parmas)
export const ApiDoctorComment = (parmas,id) => get("/api/quickVisit/doctorComment/"+id,parmas)
export const ApiaddComment = (parmas,id) => post("/api/quickVisit/addComment/"+id,parmas)
export const ApimessageRecord = (parmas,id) => get("/api/quickVisit/messageRecord/"+id,parmas)

export const ApidepartmentBunk = (parmas) => get("/api/home/departmentBunk",parmas)
export const ApibedReservation = (parmas) => post("/api/home/bedReservation",parmas)

export const ApiuserPatientVote = (parmas) => get("/api/userPatient/vote",parmas)
export const ApiuserPatientVotePost = (parmas) => post("/api/userPatient/voteSubmit",parmas)
